<%@ page language="java" import="java.util.*,com.fescoservice.model.*" pageEncoding="UTF-8"%>
<%@page import="com.fescoservice.config.PropertiesConfig"%>

<%
	String langfilename = "/resources/message";
	List applicationslist =request.getAttribute("applicationslist")==null?new ArrayList():(List<Application>) request.getAttribute("applicationslist");
	Customer cust =(Customer) request.getAttribute("Customer");
	
%>
<%@include file="../common/LocaleManager.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Fesco Service</title>
		<link rel="stylesheet" href="<%=path%>/js/jquery/themes/redmond/jquery.ui.all.css">
		<script src="<%=path%>/js/jquery/jquery-1.5.1.js"></script>
		<script src="<%=path%>/js/jquery/external/jquery.bgiframe-2.1.2.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.widget.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.mouse.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.button.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.draggable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.position.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.resizable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.dialog.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.core.js"></script>
		<script src="<%=path%>/js/jquery/jquery.pager.js"></script>
		<link rel="stylesheet" href="<%=path%>/css/admin.css">
		<link rel="stylesheet" href="<%=path%>/css/custpage.css">
		<style type="text/css">
			
		</style>
		<script type="text/javascript">
			function viewContent(applyId){
				document.forms.mainForm.action =  '<%=path%>/action/Customer.htm?cmd=viewApplication&Flag=login';
				document.forms.mainForm.applyId.value = applyId;
				document.forms.mainForm.submit();
			}

		</script>
	</head>
	<body>
	<div style="float:right">
		<a href="<%=basePath%>action/Login.htm?cmd=logout" ><%=resource.getString("FS_T_LOGOUT") %></a>
	</div>
	


<div class="content">
<div class="back">
	
<!-- header begins -->
<div class="header">
<div class="top toptext ">
	<div class="bottom">
		<div class="text ">
	<p>作为北京外企服务集团的成员企业，北京外企晨光劳务服务有限责任公司(Beijing FESCO Chenguang Labour Service Co.,Ltd.)成立于1994年，是为外

籍人员、港澳台人员来华工作和生活提供全面的信息咨询及代理服务、为中国公民提供因私出入境中介服务的专业涉外服务公司。经过多年发展，公司如今已取得国

家和相关部门的多项涉外服务授权和合法资质，服务范围拓展到了多个方面。
	<p class="more"><a href="http://www.fescoservice.com/c/ourcompany.php">more...</a></p>
</div> 	</div> 	</div>
<div class="topimage">
	<div class="logo">
		<h1><a href="http://www.fescoservice.com/" title="free-css-templates">外企晨光</a></h1>
		<h2><a href="http://www.fescoservice.com/e/" class="metamorph">  Beijing FESCO Chenguang Labor Service Co.,Ltd.</a></h2>
	</div>
	
</div>
</div>
<!-- header ends -->
<!-- content begins -->
 <div class="main">
	<div class="right">
		
		
		<div class="wrapContent">		

					<form name="mainForm" method="post">
					<table>
						<tr><td width="15%">
							<label for="custNameEn">
								<%=resource.getString("FS_T_CUST_NAME_EN")%>
							</lable>
						</td><td width="35%">							
							<%=cust.getCustFirstnameEn()+" "+cust.getCustLastnameEn() %>
						</td>
						<td width="15%">
							<label for="passId">
								<%=resource.getString("FS_T_CUST_PASS_ID")%>
							</lable>
						</td><td width="35%">
							<%=cust.getPassId() %>
							<input type="hidden" name="custId" class=" ui-corner-all" value="<%=cust.getCustId() %>" />	
							<input type="hidden" name="applyId" class=" ui-corner-all" value="" />								
							<input type="hidden" name="companyId" class=" ui-corner-all" value="<%=cust.getCompanyId() %>" />	
							<input type="hidden" name="companyName" class=" ui-corner-all" value="<%=cust.getCompanyName() %>" />	
							<input type="hidden" name="companyAddr" class=" ui-corner-all" value="<%=cust.getCompanyAddr() %>" />												
						</td>
						</tr>						
						<tr><td width="15%">
							<label for="passValidDate">
								<%=resource.getString("FS_T_CUST_PASS_VALID_DATE")%>
							</lable>
							</td><td width="35%">							
							<%=cust.getPassValidDate() %>							
						</td>
						<td width="15%">
							<label for="custNameCn">
								<%=resource.getString("FS_T_CUST_NAME_CN")%>
							</lable>
						</td><td width="35%">
							<%=cust.getCustNameCn() %>							
						</td>
						</tr>						
						<tr>
						<td width="15%">
							<label for="birthDate">
								<%=resource.getString("FS_T_CUST_BIRTH_DATE")%>
							</lable>
						</td><td width="35%">
							<%=cust.getBirthDate() %>							
						</td>
						<td width="15%">
							<label for="phone">
								<%=resource.getString("FS_T_CUST_NAME_PHONE")%>
							</lable>
						</td><td width="35%">
							<%=cust.getPhone() %>
							
						</td>
						</tr>
						
						<tr>
						<td width="15%">
							<label for="companyName">
								<%=resource.getString("FS_T_CUST_COMPANY_NAME")%>
							</lable>
						</td><td width="35%">
							<%=cust.getCompanyName()%>							
						</td>
						<td width="15%">
							<label for="companyAddr">
								<%=resource.getString("FS_T_COMP_COMPANY_ADDR")%>
							</lable>
						</td><td width="35%">
							<%=cust.getCompanyAddr()%>							
						</td>
						</tr>
						<tr><td width="15%">
							<label for="custAddr">
								<%=resource.getString("FS_T_COMP_CUST_ADDR")%>
							</lable></td><td colspan="3">
							<%=cust.getCustAddr()%>
						</td></tr>
						</table>
						
						
						
				<table class="ui-widget ui-widget-content">
					<thead>
						<tr class="ui-widget-header ">
							<th>
								<%=resource.getString("FS_T_APPLICATION_NAME")%>
								<div id="create-menu1"></div>
							</th>
							<th>
								<%=resource.getString("FS_T_APPLICATION_STATUS")%>
								<div id="create-menu2"></div>
							</th>
							<th>
								<%=resource.getString("FS_T_APPLICATION_FINISH_TIME")%>
								<div id="create-menu3"></div>
							</th>		
							<th>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS")%>
								<div id="create-menu3"></div>
							</th>	
							<th>
								<%=resource.getString("FS_T_APPLICATION_CREATOR")%>
								<div id="create-menu3"></div>
							</th>		
							<th nowrap >
								<%=resource.getString("FS_T_OPERATION_COL")%>
								<div id="create-menu3"></div>
							</th>							
						</tr>
					</thead>
					<tbody>
									<% if(applicationslist.size()>0) { 
										Application apply = null;
							for(int i=0;i<applicationslist.size();i++){
								apply = (Application)applicationslist.get(i);
					%>
					
						<tr class="operTR<%=i%2 %>" >
							<td nowrap >					
								
							<%if("A".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_AUTH")%>
							<%}else if("B".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_VISA_INVITATION")%>
							<%}else if("C".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK")%>
							<%}else if("D".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_LIVE_AUTH")%>
							<%}else if("E".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_DELAY")%>
							<%}else if("F".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_DRIVE")%>
							<%}else if("G".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_ABORD")%>
							<%}	%>		
							
							</td>
							<td nowrap >
							<%if("1".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_NOT")%>
							<%}else if("2".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_ING")%>
							<%}else if("3".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_FINISH")%>
							<%}%>
							</td>
							<td nowrap >
								<%=apply.getPreDate() %>
							</td>
							<td nowrap >
							<%if("1".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_NOT")%>
							<%}else if("2".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_FINISH")%>
							<%}%>
							</td>
							<td nowrap >
								<%=apply.getCreatorName() %>
							</td>

							<td nowrap >
								
								<a href="javascript:viewContent('<%=apply.getApplyId()%>');" ><%=resource.getString("FS_T_VIEW")%><%=resource.getString("FS_T_CONTENT")%></a>
							</td>						
						</tr>
					<%	}}else{ %>

						<tr>
							<td nowrap  colspan="5">
								<%=resource.getString("FS_M_NORESULT")%>
							</td>
						</tr>
					<%} %>
					</tbody>
				</table>
				
				
				
						
					</form>
	
		</div>
		
		
		
	</div>
  	<%@include file="../common/left.jsp"%>
</div>
<!--content ends -->
<%@include file="../common/footer.jsp"%>
</div>
</div>


		<script type="text/javascript"	>	
		//import scripts below to pages which display in right frame, for ajust the scroll height
		parent.scroll(0,0);
		parent.setFrameHeight(document.body.scrollHeight+200);
		</script>
	</body>
</html>